package com.jubao.ejb.entity;

/**
 * 店铺的帐号历史记录，记录充值，扣款的明细
 */
import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "store_transaction_tbl", schema = "jubao_database", uniqueConstraints = {})
public class StoreTransaction extends GeneEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -794725619069406864L;

	private Integer value;//本次充值或者扣款的钱

	private Integer balance;//帐户余额

	private String shortDesc;

	@ManyToOne
	private Store store;

	@OneToOne
	private CouponItem couponItem;

	@ManyToOne
	private User operator;

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getShortDesc() {
		return shortDesc;
	}

	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	public Store getStore() {
		return store;
	}

	public void setStore(Store store) {
		this.store = store;
	}

	public User getOperator() {
		return operator;
	}

	public void setOperator(User operator) {
		this.operator = operator;
	}

	public CouponItem getCouponItem() {
		return couponItem;
	}

	public void setCouponItem(CouponItem couponItem) {
		this.couponItem = couponItem;
	}

	public Integer getBalance() {
		return balance;
	}

	public void setBalance(Integer balance) {
		this.balance = balance;
	}
}
